package com.overseasShopping.Biz.impl;

import com.overseasShopping.Base.DAO.WalletDetailDAO;
import com.overseasShopping.Biz.WalletDetailBiz;
import com.overseasShopping.pojo.WalletDetail;

public class WalletDetailBizImpl implements WalletDetailBiz{
	private WalletDetailDAO walletDetailDAO=null;
	
	public void setWalletDetailDAO(WalletDetailDAO walletDetailDAO) {
		this.walletDetailDAO = walletDetailDAO;
	}

	public void deleteWalletDetail(String strId) {
			int id=Integer.parseInt(strId);
			System.out.println("do....detelewalletdetail...."+id);
			WalletDetail walletDetail=walletDetailDAO.get(id);
			System.out.println("walletDetail"+walletDetail);//////////
			walletDetailDAO.delete(walletDetail);
		
		
	}

	public void addWalletDetail(WalletDetail walletDetail) {
		System.out.println("------------------");
		walletDetailDAO.save(walletDetail);
		
	}
	
}
